package com.ctsi.ssdc.service;


import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallAftersale;
import com.ctsi.ssdc.domain.LitemallAftersaleExample;
import com.ctsi.ssdc.service.StrengthenBaseService;

import java.util.List;

/**
 * Service Interface for managing LitemallAftersale.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallAftersaleService 
	extends StrengthenBaseService<LitemallAftersale, Integer, LitemallAftersaleExample>{


    /**
    * GET  /litemallAftersales : get the litemallAftersales firstStringBaseColumn.
    */
    PageResult<LitemallAftersale> findFirstStringColumn(String aftersaleSn ,Pageable pageable);

    List<LitemallAftersale> queryList(Integer userId, Short status, Integer page, Integer limit, String sort, String order);

    LitemallAftersale findByOrderId(Integer userId, Integer orderId);

    void deleteByOrderId(Integer userId, Integer orderId);

    String generateAftersaleSn(Integer userId);

    void add(LitemallAftersale aftersale);

    LitemallAftersale findById(Integer userId, Integer id);

    void updateById(LitemallAftersale aftersale);
}
